

package com.hazelcast.internal.config;

import com.hazelcast.config.CacheSimpleEntryListenerConfig;

/**
 * Readonly version of CacheSimpleEntryListenerConfig
 */
public class CacheSimpleEntryListenerConfigReadOnly extends CacheSimpleEntryListenerConfig {

    public CacheSimpleEntryListenerConfigReadOnly(CacheSimpleEntryListenerConfig listenerConfig) {
        super(listenerConfig);
    }

    @Override
    public CacheSimpleEntryListenerConfig setSynchronous(boolean synchronous) {
        throw new UnsupportedOperationException("This config is read-only");
    }

    @Override
    public CacheSimpleEntryListenerConfig setOldValueRequired(boolean oldValueRequired) {
        throw new UnsupportedOperationException("This config is read-only");
    }

    @Override
    public CacheSimpleEntryListenerConfig setCacheEntryEventFilterFactory(String cacheEntryEventFilterFactory) {
        throw new UnsupportedOperationException("This config is read-only");
    }

    @Override
    public CacheSimpleEntryListenerConfig setCacheEntryListenerFactory(String cacheEntryListenerFactory) {
        throw new UnsupportedOperationException("This config is read-only");
    }
}
